<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script>
$(document).ready(function(){
  $(".job_name").hover(function(){
    var job_name=$(this).attr('v'); 
    if($.trim(job_name)!=''){
      layer.tips(job_name, this, {guide: 1, style: ['background-color:#5EA7DC; color:#fff;top:-7px', '#5EA7DC']}); 
      $(".xubox_layer").addClass("xubox_tips_border");
    } 
  },function(){
    var job_name=$(this).attr('v'); 
    if($.trim(job_name)!=''){
      layer.closeAll('tips');
    } 
  });
  //弹窗框部分
    $(".status").click(function(){
      var uid=$(this).attr("pid");
    var pytoken=$("#pytoken").val();
    var status=$(this).attr("status");
    $("#status_"+status).attr("checked",true);
    $("input[name=uid]").val(uid);
    status_div('锁定用户','350','220');
  });
  $(".user_status").click(function(){
    var id=$(this).attr("pid");
    var status=$(this).attr("status");
    $("#status"+status).attr("checked",true);
    var pytoken=$("#pytoken").val();
    $("input[name=yesid]").val(id);
    $.layer({
      type : 1,
      title :'友情链接审核', 
      closeBtn : [0 , true],
      border : [10 , 0.3 , '#000', true],
      area : ['350px','220px'],
      page : {dom :"#infobox2"}
    });
  });
  
  
   
})
</script>
<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />

<title>后台管理</title>
</head>
<body class="body_ifm">
<div id="infobox2"  style="display:none; width: 350px; "> 
      <form action="index.php?m=link&c=status" target="supportiframe" method="post" id="formstatus">
     <input name="yesid" type="hidden">
        <table cellspacing='1' cellpadding='1' class="admin_examine_table">
  <tr>
    <th width="80">审核操作：</th>
      <td align="left">
        <div class="admin_examine_right">
    <label for="status0"><span class="admin_examine_table_s"><input type="radio" name="status" value="0" id="status0" >未审核</span></label>
        <label for="status1"><span class="admin_examine_table_s"><input type="radio" name="status" value="1" id="status1" >已审核</span></label>
    </div>
         </td>
          </tr>
          <tr>
            <th>审核说明：</th>
   <td align="left"><textarea id="alertcontent" name="statusbody"class="admin_explain_textarea"></textarea></td>
   </tr>
     <tr>
       <td colspan='2' align="center">
       <div class="admin_Operating_sub"> 
       <input name="pid" value="0" type="hidden">
       <input type="submit"  value='确认' class="admin_examine_bth"> 
       <input type="button" onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'>
       </div>
       </td>
   </tr>
    </table>
    <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
      </form> 
</div>
<div class="infoboxp">
<div class="admin_new_tip">
<a href="javascript:;" class="admin_new_tip_close"></a>
<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
<div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
<div class="admin_new_tip_list_cont">
<div class="admin_new_tip_list">该页面展示了网站的友情链接信息，可对友情链接进行审核，删除操作。</div>
<div class="admin_new_tip_list">可输入名称关键字进行搜索，也可进行详细的高级搜索。</div>
</div>
</div>

<div class="clear"></div>

<div class="admin_new_search_box"> 
 <form action="index.php" name="myform" method="get">
    <input name="m" value="link" type="hidden"/>
    <input name="status" value="{yun:}$smarty.get.status{/yun}" type="hidden"/>
      <div class="admin_new_search_name">搜索类型：</div>
 <input class="admin_Filter_search"  placeholder="输入你要搜索的关键字"  type="text" name="keyword"  size="25" style="float:left">
    <input class="admin_Filter_bth"  type="submit" name="news_search" value="检索" style="float:left"/>
  <a  href="javascript:void(0)" onclick="$('.admin_screenlist_box').toggle();"   class="admin_new_search_gj">高级搜索</a>
       <a href="index.php?m=link&c=add" class="admin_new_cz_tj">+ 添加链接</a>
    </form>


  
  {yun:}include file="admin/admin_search.htm"{/yun}
  </div>
<div class="clear"></div> 

<div class="table-list">
  <div class="admin_table_border">
    <iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
    <form action="index.php?m=link&c=del" name="myform" method="post" id='myform' target="supportiframe">
      <input type="hidden" name="pytoken" id='pytoken' value="{yun:}$pytoken{/yun}">
      <table width="100%">
        <thead>
          <tr class="admin_table_top">
            <th><label for="chkall">
              <input type="checkbox" id='chkAll' onclick='CheckAll(this.form)' />
              </label></th>
            <th> {yun:}if $smarty.get.t=="id" && $smarty.get.order=="asc"{/yun} <a href="{yun:}searchurl order=desc t=id m=link untype='order,t'{/yun}">编号<img src="images/sanj.jpg"/></a> {yun:}else{/yun} <a href="{yun:}searchurl order=asc t=id m=link untype='order,t'{/yun}">编号<img src="images/sanj2.jpg"/></a> {yun:}/if{/yun} </th>
            <th align="left">链接标题</th>
            <th align="left">链接地址</th>
            <th> {yun:}if $smarty.get.t=="link_time" && $smarty.get.order=="asc"{/yun} <a href="{yun:}searchurl order=desc t=link_time m=link untype='order,t'{/yun}">发布时间<img src="images/sanj.jpg"/></a> {yun:}else{/yun} <a href="{yun:}searchurl order=asc t=link_time m=link untype='order,t'{/yun}">发布时间<img src="images/sanj2.jpg"/></a> {yun:}/if{/yun} </th>
            <th>类型</th>
            <th> {yun:}if $smarty.get.t=="link_sorting" && $smarty.get.order=="asc"{/yun} <a href="{yun:}searchurl order=desc t=link_sorting m=link untype='order,t'{/yun}">排序<img src="images/sanj.jpg"/></a> {yun:}else{/yun} <a href="{yun:}searchurl order=asc t=link_sorting m=link untype='order,t'{/yun}">排序<img src="images/sanj2.jpg"/></a> {yun:}/if{/yun} </th>
            <th>状态</th>
            <th class="admin_table_th_bg" width="120">操作</th>
          </tr>
        </thead>
        <tbody>
        
        {yun:}foreach item=v key=key from=$linkrows{/yun}
        <tr align="center"{yun:}if ($key+1)%2=='0'{/yun}class="admin_com_td_bg"{yun:}/if{/yun} id="list{yun:}$v.id{/yun}">
          <td><input type="checkbox" value="{yun:}$v.id{/yun}" name='del[]' onclick='unselectall()' class="check_all" rel="del_chk" /></td>
          <td><span>{yun:}$v.id{/yun}</span></td>
          <td class="ud" align="left">{yun:}$v.link_name{/yun}</td>
          <td class="od" align="left"><a href="{yun:}$v.link_url{/yun}" target="_blank">{yun:}$v.link_url{/yun}</a></td>
          <td>{yun:}$v.link_time|date_format:"%Y-%m-%d"{/yun}</td>
          <td> {yun:}if $v.link_type eq 1{/yun}文字链接{yun:}else{/yun}图片链接{yun:}/if{/yun} </td>
          <td>{yun:}$v.link_sorting{/yun}</td>
          <td> {yun:}if $v.link_state neq 1{/yun}<span class="admin_com_noAudited">未审核</span>{yun:}else{/yun}<span class="admin_com_Audited">已审核</span>{yun:}/if{/yun}</td>     
          <td width="180"> <a href="javascript:void(0);" class="user_status admin_new_c_bth admin_new_c_bthsh"  pid="{yun:}$v.id{/yun}" status="{yun:}$v.link_state{/yun}">审核</a>
      
           <a href="index.php?m=link&c=add&id={yun:}$v.id{/yun}"class="admin_new_c_bth">修改</a> 
           <a href="javascript:void(0)" onClick="layer_del('确定要删除？', 'index.php?m=link&c=del&id={yun:}$v.id{/yun}');" class="admin_new_c_bth admin_new_c_bth_sc">删除</a> </td>
        </tr>
        {yun:}/foreach{/yun}
        <tr style="background: #f1f1f1;">
          <td align="center"><input type="checkbox" id='chkAll2' onclick='CheckAll2(this.form)' /></td>
          <td colspan="2" ><label for="chkAll2">全选</label>
           
            <input class="admin_button"  type="button" name="delsub" value="删除所选"  onclick="return really('del[]')"/></td>
       
      <td colspan="7" class="digg">{yun:}$pagenav{/yun}</td>
        </tr>
        </tbody>
        
      </table>
    </form>
  </div>
</div>
<script type="text/javascript">
  layui.use(['form'], function(){
  });
</script>
</body>
</html>
